package com.lancoo.examview;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.lancoo.examview.exam.ExamActivity;
import com.lancoo.examview.exam.ExamTypeActivity;
import com.lancoo.examview.homework.HomeWorkActivity;
import com.lancoo.examview.kaofu.KaofuActivity;
import com.lancoo.examview.svga.ImgTestActivity;
import com.lancoo.examview.svga.SvgaTestActivity;
import com.lancoo.examview.teachmaterial.TeachMaterailActivity;
import com.lancoo.examview.weike.WeikeActivity;

/**
 * Created by pengmi on 2021/12/7 15:05
 * Description:
 */
public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        Log.e("task","SplashActivity:onCreate");
        findViewById(R.id.btn1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, MainActivity.class);
                startActivity(mIntent);
            }
        });
        findViewById(R.id.btn2).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, TestActivity.class);
                startActivity(mIntent);
            }
        });
        findViewById(R.id.btn3).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, ExamTypeActivity.class);
                startActivity(mIntent);
            }
        });
        findViewById(R.id.btn4).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, HomeWorkActivity.class);
                startActivity(mIntent);
            }
        });
        findViewById(R.id.btn5).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, TeachMaterailActivity.class);
                startActivity(mIntent);
            }
        });
        findViewById(R.id.btn6).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, WeikeActivity.class);
                startActivity(mIntent);
            }
        });
        findViewById(R.id.btn7).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent = new Intent(SplashActivity.this, KaofuActivity.class);
                startActivity(mIntent);
//                ImgTestActivity.launch(SplashActivity.this);
            }
        });

    }
}
